#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/zksk_buss_20221117.sql ./mysql/db
cp ../sql/zksk_nacos_config_20221117.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../zksk-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy platform-gateway "
cp ../platform-gateway/target/platform-gateway.jar ./zksk/platform/gateway/jar

echo "begin copy platform-auth "
cp ../platform-auth/target/platform-auth.jar ./zksk/platform/auth/jar

echo "begin copy platform-visual "
cp ../platform-visual/platform-monitor/target/platform-visual-monitor.jar  ./zksk/platform/visual/monitor/jar

echo "begin copy platform-modules-system "
cp ../platform-modules/platform-system/target/platform-modules-system.jar ./zksk/platform/modules/system/jar

echo "begin copy platform-modules-file "
cp ../platform-modules/platform-file/target/platform-modules-file.jar ./zksk/platform/modules/file/jar

echo "begin copy platform-modules-job "
cp ../platform-modules/platform-job/target/platform-modules-job.jar ./zksk/platform/modules/job/jar

echo "begin copy platform-modules-gen "
cp ../platform-modules/platform-gen/target/platform-modules-gen.jar ./zksk/platform/modules/gen/jar

